package com.ruimei.entitys.enums;

public enum AttendanceType
{
  LATE("迟到"),  LEAVE_EARLY("早退"),  ABSENTEEISM("旷课"),  COMPASSIONATE_LEAVE("事假"),  SICK_LEAVE("病假"),  OTHERS("其他");
  
  private String name;
  
  private AttendanceType(String name)
  {
    this.name = name;
  }
  
  public static AttendanceType values(String type)
  {
    if (("".equals(type)) || (null == type)) {
      return null;
    }
    switch (type)
    {
    case "LATE": 
      return LATE;
    case "LEAVE_EARLY": 
      return LEAVE_EARLY;
    case "ABSENTEEISM": 
      return ABSENTEEISM;
    case "COMPASSIONATE_LEAVE": 
      return COMPASSIONATE_LEAVE;
    case "SICK_LEAVE": 
      return SICK_LEAVE;
    case "OTHERS": 
      return OTHERS;
    }
    return null;
  }
  
  public static AttendanceType value(Object type)
  {
    return values(String.valueOf(type));
  }
  
  public String getName()
  {
    return this.name;
  }
  
  public void setName(String name)
  {
    this.name = name;
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruimei\entitys\enums\AttendanceType.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */